package com.tutou.ikuser.pojo.vo;

import com.tutou.ikuser.pojo.po.User;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

@Data
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
public class RedisUser {
    private String userId;
    private String userName;

    public RedisUser(User user) {
        this.userId = user.getUserId();
        this.userName = user.getUserName();
    }
}
